///<reference types="@i3yun/viewer" />

let viewer;
Sippreep.Initializer().then(() => {
  viewer = new Sippreep.Viewing.Viewer3D(document.getElementById('viewer-element'));
  const errorCode = viewer.start();
  const modelUrl = "https://www.aisanwei.cn/api/Storge/Viewable?ID=jobs/2522197c-b409-4a0f-a5dd-80eb58aae326/output/main.hf";
  viewer.loadModel(modelUrl, {}, (model) => {
    console.log('模型加载成功');
  }, (error) => {
    console.warn(error);
  });
});
